import $http from './request.js'

/* index */
const getResourceList = () => $http('/getResourceList')

/* home */
const getPublic = () => $http('/getPublic')
const getRecruitSmall = () => $http('/getRecruitSmall')
const getBuddy = () => $http('/getBuddy')

/* course */
const getCourse = ()=>$http('/getCourse')

/* login */
const toLogin = (data)=>$http('/login',data,'POST')

/* register */
const toRegister = (data)=>$http('/login',data,'POST')

export {
	getResourceList,
	getPublic,
	getRecruitSmall,
	getBuddy,
	getCourse,
	toLogin,
	toRegister
}
